<template>
  <div class="meeting-record">
    <div class="meeting-record-item" v-for="item in record">
      <div class="time-block">
        <div class="time">{{item.time}}</div>
        <div class="address">{{item.address}}</div>
      </div>
      <div class="desc">{{item.desc}}</div>
      <div class="label">
        <div class="label-item" v-for="label in item.label">{{label}}</div>
      </div>
      <div class="line"></div>
      <div class="bottom-block" @click="open(item)">
        <div class="detail-btn">查看详情</div>
      </div>
    </div>
    <Dialog v-if="info.show" :info="info">

    </Dialog>
  </div>
</template>
<script>
import Dialog from "@/components/dialog/Dialog";
export default {
  name: 'MeetingRecord',
  components: {Dialog},
  data(){
    return{
      record:[
        {time:'07-05',desc:'主持人：网格警长张、网格长李、老党员王',address:'顺和家园3号楼',label:['小区停车管理','楼道杂物清理','垃圾分类']},
        {time:'06-12',desc:'主持人：网格警长张、网格长赵、业委会主任刘',address:'金泉小区活动中心',label:['邻里纠纷调解','垃圾分类','消防安全']},
        {time:'06-19',desc:'主持人：网格警长李、网格长孙、志愿者队长陈',address:'金泉小区5号楼前',label:['小区绿化改造','公共设施维护','文明养犬']},
      ],
      info:{
        title:'详情',
        width:'900px',
        show:false
      }
    }
  },
  methods:{
    open(item){
     // this.info.show=true
    }
  }
}
</script>
<style scoped lang="scss">
.meeting-record{
  width: 100%;
  height: 100%;
  overflow: auto;
  &::-webkit-scrollbar {
    width: 4px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(0,198,255,.3);
  }
  &::-webkit-scrollbar-track{
    border-radius: 3px;
    background: rgba(0,24,48,.3);
  }
  .meeting-record-item{
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #32B4FF;
    border-radius: 5px;
    background: #06213B;
    padding:10px 15px;
    .time-block{
      width: 100%;
      display: flex;
      align-items: center;
      .time{
        color: #32B4FF;
        font-weight: bold;
        flex-grow: 1;
      }
      .address{
        font-size: 14px;
        color: #fff;
      }
    }
    .label{
      display: flex;
      .label-item{
        font-size: 12px;
        color: #32B4FF;
        border-radius: 3px;
        padding: 3px 5px;
        background: rgba(50, 180, 255, 0.1);
        display: inline-block;
        margin-bottom: 10px;
        margin-right: 10px;
      }
    }
    .desc{
      color: #fff;
      font-size: 14px;
      margin: 10px 0;
    }
    .line{
      height: 1px;
      width: 100%;
      background: #506375;
      margin-bottom: 10px;
    }
    .bottom-block{
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .detail-btn{
        width: 80px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #134C75;
        color: #32B4FF;
        border-radius: 5px;
        font-size: 14px;
        cursor: pointer;
      }
    }
  }
}
</style>
